package game.ai.fsm;
import game.objects.npc.FSMNPC;
public class Transition {
	public State nextState;
	public Condition condition;
	private static Condition passCondition = new Condition();
	public Transition(FSMNPC npc, String currentstate, String nstatename, String condname) {
		this.nextState = npc.getState(nstatename);
		this.condition = npc.getCondition(condname);
		npc.getState(currentstate).addTransition(this);
	}
	public Transition(FSMNPC npc, String currentstate, String nstatename) {
		this.nextState = npc.getState(nstatename);
		this.condition = passCondition;
		npc.getState(currentstate).setTimeOutTransition(this);
	}
}
